package org.lmind.example.common.service.auth;

import org.lmind.example.common.api.auth.AuthenticationProvider;
import org.lmind.example.common.api.auth.Certificate;
import org.lmind.example.common.api.auth.Credential;
import org.lmind.example.common.api.auth.NamePasswordCredential;

public class NamePasswordProvider implements AuthenticationProvider {

	@Override
	public boolean supports(Class<?> credential) {
		return NamePasswordCredential.class.isAssignableFrom(credential);
	}

	@Override
	public Certificate authenticate(Credential certificate) {
		
		NamePasswordCredential cert = (NamePasswordCredential)certificate;
		
		// TODO Auto-generated method stub
		return null;
	}
	
	
	//protected

}
